<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style/default.css">

<title>${title}</title>
</head>
<body>
	<div id="main-wrapper">
		<div id="wrapper">
			<jsp:include page="menu.jsp"></jsp:include>
			<div id="content-block">
				<div id="content-wrapper">
					<h1>${title}</h1>
					<div class="horizontal-line"></div>
					<form action="new-soin" method="get"></form>
					<c:choose>
						<c:when test="${empty bo.error}">
							<form action="index" method="get">
								<table class="list-table">
									<tr>
										<c:forEach items="${titles}"
											var="column">
											<th class="${listType}">
												${column}
											</th>
										</c:forEach>
									</tr>
									<c:forEach items="${list}"
										var="soin">
										<tr class="${listType}">
											<td>
												<button name="id"
													value="${soin.id}" type="submit">
													<c:out
														value="${soin.content}" />
												</button>
											</td>
										</tr>
									</c:forEach>
								</table>
							</form>
						</c:when>
						<c:otherwise>
							<p class="error">${bo.error}</p>
						</c:otherwise>
					</c:choose>
				</div>
			</div>
		</div>
		<jsp:include page="footer.jsp"></jsp:include>
	</div>
</body>
</html>